package com.miplus.ccrm.core.service.strategy;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.github.yulichang.base.MPJBaseServiceImpl;
import com.github.yulichang.wrapper.MPJLambdaWrapper;
import com.miplus.ccrm.core.controller.vo.LabelResVo;
import com.miplus.ccrm.core.pojo.CfgActivityQuerydatacol;
import com.miplus.ccrm.core.mapper.CfgActivityQuerydatacolMapper;
import com.miplus.ccrm.core.pojo.MsgDefine;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author pc
* @description 针对表【cfg_activity_querydatacol(参与筛选的列)】的数据库操作Service实现
* @createDate 2024-03-28 17:28:17
*/
@Service
public class CfgActivityQuerydatacolServiceImpl extends MPJBaseServiceImpl<CfgActivityQuerydatacolMapper, CfgActivityQuerydatacol>
    implements CfgActivityQuerydatacolService{

    @Override
    public List<LabelResVo> triggerColList()
    {
        return selectJoinList(
                LabelResVo.class,
                new MPJLambdaWrapper<CfgActivityQuerydatacol>()
                        .selectAs("splicecol",LabelResVo::getValue)
                        .selectAs("coldesc",LabelResVo::getLabel)
                        .select("splicecol","coldesc")
        );
    }
}




